<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>我的密友圈</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<link href="{$Think.config.RESOURCEURL}wx_assets/css/common.css{$Think.config.RESOURCE_VER}" rel="stylesheet" type="text/css">
<link href="{$Think.config.RESOURCEURL}wx_assets/quan/userIndex.css{$Think.config.RESOURCE_VER}" rel="stylesheet" type="text/css">
<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/zepto.1.1.3.min.js{$Think.config.RESOURCE_VER}"></script>
<script src="{$Think.config.RESOURCEURL}wx_assets/js/util.js{$Think.config.RESOURCE_VER}" type="text/javascript"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="{$Think.config.RESOURCEURL}wx_assets/js/wx_share.js{$Think.config.RESOURCE_VER}" type="text/javascript"></script>
</head>
<body>
<div class="main">
    <div class="upper">
        <div class="middle">
            <div class="photo">
                <if condition="$isShare eq '1'">
                <a ><img src="{$headImgUrl}"/></a>
                <else/>
                <a href='{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=quan&method=home&params=%7B"qId"%3A"{$qId}"%7D'>
                    <img src="{$headImgUrl}"/>
                </a>
              </if>
            </div>
            <div class="titlez">{$nickName}</div>
        </div>
        <div class="income">
            <a href='{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=quan&method=balance&params=%7B%22qId%22%3A%22{$qId}%22%2C%22uType%22%3A%221%22%7D' class="go">
            收入：<notempty name="miCoins"><span><php> echo sprintf("%.2f", $miCoins);</php></span></notempty>
                   <empty name="miCoins"><span>0</span></empty>
                <em></em>
            </a>
        </div>
    </div>
    <div class="lower">
        <ul class="list" style="overflow:hidden">
            <li><a class="content" href='{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=micontent&method=getMiContent&params=%7B"qId"%3A"{$qId}"%7D'><i></i>好文章</a></li>
            <li><a class="pro" href='{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=quan&method=index_pro&params=%7B"qId"%3A"{$qId}"%7D'><i></i>好东西</a></li>
            <li><a href='{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=quan&method=shopStart&params=%7B"qId"%3A"{$qId}"%7D'><i></i>我的店铺</a></li>
            <li><a class="order" href='{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=quan&method=order&params=%7B"qId"%3A"{$qId}"%7D'><i></i>查看订单</a></li>
            <li><a class="blance" href='{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=quan&method=balance&params=%7B%22qId%22%3A%22{$qId}%22%2C%22uType%22%3A%221%22%7D'><i></i>我的收入</a></li>
             <!--<li><a class="provision" href='{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=quan&method=miu_pro&params=%7B"qId"%3A"{$qId}"%7D'><i></i>密友特供</a></li>-->
             <!--<li><a class="activty" href='{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=quan&method=activitylist&params=%7B"qId"%3A"{$qId}"%7D'><i></i>参加活动</a></li>-->
            <!--<li><a class="task" href='{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=task&method=getTaskList&params=%7B"qId"%3A"{$qId}"%7D'><i></i>任务</a></li>-->
            <!--<li><a class="shenqi" href='{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=shenqi&method=index&params=%7B"qId"%3A"{$qId}"%7D'><i></i>神器</a></li>-->
            <if condition="$identity eq 0">
                <li><a class="ren" href='{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=quan&method=award&params=%7B"qId"%3A"{$qId}"%7D'><i></i>主公</a></li>
            </if>
        </ul>
    </div>
    
</div>
</body>
</html>
<script defer="defer">
    var baseUrl = '{$Think.config.SERVER_HOST}';
    var index={
        getShareUrl:function(){
            var identity = '{$identity}';
            var shareUrl="";
            var params={
                "qId":'{$qid}',
                "fromUId":"{$fromUId}"
            };
            params=encodeURIComponent(JSON.stringify(params));
            if(identity==0){
                shareUrl=baseUrl+'call.html?customerId={$customerId}&module=quan&join=1&scope=1&method=index&params='+params;
            }else{
                shareUrl=baseUrl+'call.html?customerId={$customerId}&module=quan&scope=1&method=index&params='+params;
            }
            return shareUrl;
        },
        square:function(){
            $(".list li").each(function(){
                $(this).height($(this).width());
                var top = ($(this).height()-$(this).find("a").height())/2;
                $(this).find("a").css({'padding-top':top+'px','padding-bottom':top+'px'});
            });

        }
    }
    index.square();
    wx_share.init({
        "title":"{$nickName}的密友圈",
        "desc":'{$slogan}',
        "link":index.getShareUrl(),
        "imgUrl":"{$headImgUrl}",
        "pkg":{
            "appId": '{$pkg.appId}',
            "timestamp": '{$pkg.timestamp}',
            "nonceStr": '{$pkg.nonceStr}',
            "signature": '{$pkg.signature}'
        },
        success:function(config,shareType){

        }
    });
</script>